// { "framework": "Vue"} 

/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 403);
/******/ })
/************************************************************************/
/******/ ({

/***/ 295:
/***/ (function(module, exports) {

module.exports = {
  "audio-t": {
    "fontSize": "32",
    "color": "#00c470",
    "marginLeft": "30",
    "lineHeight": "49"
  },
  "audio-dyn": {
    "width": "50",
    "height": "50",
    "marginLeft": "30"
  },
  "video": {
    "width": "1",
    "height": "1",
    "marginLeft": "60",
    "position": "relative",
    "top": "5",
    "opacity": 0,
    "backgroundColor": "#00B4FF"
  },
  "panel": {
    "width": "300",
    "height": "80",
    "borderWidth": "1",
    "borderColor": "#e4e4e4",
    "backgroundColor": "#f3f3f3",
    "borderRadius": "20",
    "paddingTop": "15",
    "paddingBottom": "15",
    "flexDirection": "row"
  }
}

/***/ }),

/***/ 296:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

exports.default = {
    props: {
        audioSrc: {
            type: String
        },
        time: {
            type: Number
        }
    },
    data: function data() {
        return {
            i_num: 0,
            v_stat: false,
            play_stat: 'pause',
            is_fail: false
        };
    },


    computed: {

        //播放时动态src
        i_src: function i_src() {
            return 'root:img/audio_img/left_audio_' + this.i_num + '.png';
        },
        //格式化时长默认单位是秒
        timeFomat: function timeFomat() {
            if (!this.time) {
                return '';
            }
            var seconds = parseInt(this.time / 60);
            if (seconds > 0) {
                return seconds + '\u2032 ' + (this.time % 60 == 0 ? '' : this.time % 60) + '\u2033';
            } else {
                return this.time + '\u2033';
            }
        }
    },
    methods: {
        onfinish: function onfinish(event) {
            this.play();
        },
        onfail: function onfail(event) {
            this.is_fail = true;
        },
        play: function play() {

            //失败
            if (this.is_fail) {
                this.toast('加载出错了');
                return;
            }

            if (this.v_stat) {
                clearInterval(this.timer);
                this.v_stat = false;
                this.i_num = 0;
                this.play_stat = 'pause';
            } else {
                this.play_stat = 'play';
                var self = this;
                this.timer = setInterval(function () {
                    self.i_num = self.i_num == 3 ? 0 : self.i_num + 1;
                    self.v_stat = true;
                }, 300);
            }
        }
    }
};

/***/ }),

/***/ 297:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticStyle: {
      marginLeft: "30px"
    }
  }, [_c('video', {
    staticClass: ["video"],
    attrs: {
      "src": _vm.audioSrc,
      "autoplay": "",
      "controls": "",
      "mStopped": "true",
      "playStatus": _vm.play_stat
    },
    on: {
      "finish": _vm.onfinish
    }
  }), _c('div', {
    staticClass: ["panel"]
  }, [_c('image', {
    staticClass: ["audio-dyn"],
    attrs: {
      "src": _vm.i_src
    },
    on: {
      "click": _vm.play
    }
  }), _c('text', {
    staticClass: ["audio-t"]
  }, [_vm._v(_vm._s(_vm.timeFomat))])])])
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ 403:
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(295)
)

/* script */
__vue_exports__ = __webpack_require__(296)

/* template */
var __vue_template__ = __webpack_require__(297)
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "D:\\webStormWorkPlace\\weexYxqApp\\src\\native\\com\\yx\\components\\audioVue.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-0ed26d58"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ })

/******/ });